package cn.itcast.service;

import cn.itcast.domain.StuAndCourse;
import cn.itcast.domain.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {

    // 查询所有账户
    public List<Student> findAll();

    // 根据用户名和密码查询用户
    public Student findByStuAndPas(@Param("username") String username,
                                   @Param("password") String password);

    // 根据id查询成绩
    public List<StuAndCourse> findByIdtoCourse(@Param("username") String username);

    // 根据id查询学生信息
    public Student findById(@Param("username")String username);

    // 修改密码
    public void updatePass(@Param("oldpassword")String oldpassword,
                           @Param("newpassword")String newpassword,
                           @Param("confirmpassword")String confirmpassword,
                           @Param("username")String username);

}
